﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MenuItem
{
    abstract class MenuItemBaseClass
    {
        string name;

        public string Name
        {
            get { return name; }
            set
            {
                if (String.IsNullOrWhiteSpace(value))
                    throw new ArgumentNullException("Wrong name!");
                name = value;
            }
        }
        public MenuItemBaseClass(string enterName)
        {
            Name = enterName;
        }

        abstract public void PrintToConsole();

    }
}
